package cn.wolfcode.mapper;

import cn.wolfcode.domain.Emp;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

public interface EmpMapper {
    List<Emp> query(String name, Integer gender, Date begin, Date end);

    void delByIds(List<Long> ids);

    void add(Emp emp);

    Emp getById(Long id);

    void update(Emp emp);

    @Select("""
            select username,password from emp where username=#{username} and password=#{password}
            """)
    Emp login(Emp emp);
}
